# cmake最低版本号要求
cmake_minimum_required (VERSION 3.0.0)
# 设置编译器变量
set(CMAKE_MAKE_PROGRAMC "C:/ServerPack/Environ/Develop/CPP/MinGW/bin/make.exe")
set(CMAKE_CXX_COMPILER "C:/ServerPack/Environ/Develop/CPP/MinGW/bin/g++.exe")
set(CMAKE_C_COMPILER "C:/ServerPack/Environ/Develop/CPP/MinGW/bin/gcc.exe")
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -Wall -g -ggdb")
set(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -g")
# 设置PROJECT_NAME变量
set(PROJECT_NAME testCpp)
# 设置工程名
project (${PROJECT_NAME})
# 查找当前目录下的所有源文件并存入DIR_SRCS变量
# aux_source_directory(src DIR_SRCS)
# 添加一个可编译的目标到工程
# add_executable (${PROJECT_NAME} ${DIR_SRCS})
# 递归列出所有源文件
file (GLOB_RECURSE SOURCE_FILES "Dev/*.cpp")
file (GLOB ALLHEADERS "Dev/*.h")
# 添加一个可编译的目标到工程
add_executable (${PROJECT_NAME} ${SOURCE_FILES} ${ALLHEADERS})
# 编译成可执行文件
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/build)
# 保证glfw dir被编译
# add_subdirectory (${GLFW_DIR})
# 添加头文件搜索路径
# include_directories (${GLFW_DIR}/include)
# 添加链接库
# target_link_libraries (${PROJECT_NAME} glfw)
# IrrKlang
# find_package (IrrKlang REQUIRED)